﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Reference files </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Reference files ">
    <meta name="generator" content="docfx 2.40.7.0">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="">

<a href="https://github.com/NeutroniumCore/Neutronium" target="_blank">
  <img style="position: fixed; top: 0; right: 0; border: 0; z-index:99999" width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_gray_6d6d6d.png?resize=149%2C149" class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1">
</a>
<h1 id="reference-files">Reference files</h1>
<h2 id="1-recommended-uri-property-use-pack-uri">1. Recommended: Uri property use pack uri</h2>
<ul>
<li><p>Pack uri are defined by WPF application : <a href="https://docs.microsoft.com/en-us/dotnet/framework/wpf/app-development/pack-uris-in-wpf">See reference: Pack URIs in WPF</a></p>
</li>
<li><p>Neutronium fully support this kind of uri.</p>
</li>
<li><p>Syntax:
To reference file <code>&quot;View\Main\dist\index.html&quot;</code> use <code>&quot;pack://application:,,,/View/Main/dist/index.html&quot;</code>.</p>
</li>
</ul>
<p>Example:</p>
<pre><code class="lang-HTML">&lt;wpf:HTMLViewControl Uri=&quot;pack://application:,,,/View/Main/dist/index.html&quot;&gt;
&lt;/wpf:HTMLViewControl&gt;
</code></pre>
<ul>
<li>Referenced files should have a
<ul>
<li><code>Resource</code> build type</li>
<li>Preferably <code>None</code> Copy to Output type.</li>
</ul>
</li>
<li>All other files referenced by the root file the same properties.</li>
<li>This way HTML files will be embedded in the application and not visible from the outside of the assembly when deploying.</li>
</ul>
<h2 id="2-deprecated-relativesource-and-relative-path-to-the-file">2. Deprecated: RelativeSource and relative path to the file.</h2>
<p>-<strong>Important: Deprecated and removed in future Neutronium version, please use and  migrate to pack uri.</strong></p>
<ul>
<li><p>Referenced files should have a</p>
<ul>
<li><code>Content</code> build type</li>
<li><code>Copy Always</code> Copy to Output type.</li>
</ul>
</li>
<li><p>Build vue file generated by <a href="https://github.com/NeutroniumCore/vue-cli-plugin-neutronium">vue-cli-neutronium</a> are not compatible with this mode.</p>
</li>
<li><p>These files are not embedded in the assembly and will be exposed during deploy.</p>
</li>
</ul>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/NeutroniumCore/Neutronium/blob/master/Documentation/Neutronium.Documentation/articles/reference.md/#L1" class="contribution-link">Improve this Doc</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
